package com.fkg.test.mvvm.view;

import android.databinding.DataBindingUtil;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;

import com.fkg.test.R;
import com.fkg.test.databinding.MvvmBinding;
import com.fkg.test.mvvm.modle.User;

public class LoginActivity extends AppCompatActivity{

    private MvvmBinding mvvmBinding;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);

        mvvmBinding = DataBindingUtil.setContentView(this,R.layout.mvvm);

        User mouser = new User("fkg","123456");
        mvvmBinding.setUser(mouser);
    }
}
